package com.lc.afbx.conn;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONArray;
import org.json.JSONObject;

/**
 * Created by Administrator on 2016/6/14.
 */
@HttpInlet(Conn.INLET_API_MYORDER_EDIT)
public class GetApiMyOrderEdit extends BaseAsyGet<GetApiMyOrderEdit.Info> {
    public int type;
    public JSONArray bcid, alid;

    public GetApiMyOrderEdit(AsyCallBack<GetApiMyOrderEdit.Info> asyCallBack) {
        super(asyCallBack);
    }

    protected Info parser(JSONObject jsonObject) {

        TOAST = jsonObject.optString("message");

        Info info = new Info();
        info.code = jsonObject.optString("code");
        info.data = jsonObject.optString("data");
        info.message = jsonObject.optString("message");

        return info;

    }

    public static class Info {
        public String message, code, data;
    }
}
